#define  _crt_secure_no_warnings
#include<iostream>
#include<set>
#include<string.h>
#include<algorithm>
#include<functional>
using namespace std;
   

class mycompare
{
public:
	bool operator()(int v1, int v2)
	{
		return v1 > v2;
	}
 };

void test01()
{
	mycompare m1;
	set<int,mycompare()>s2;
	s2.insert(10);
	s2.insert(20);
	s2.insert(30);
	for (set<int>::const_iterator it = s2.begin(); it != s2.end(); it++)
	{
		cout << *it << endl;
	}

}

int main()
{
	test01();
	return 0;
}